#include <stdio.h>
#define MAX 10
int main() {
    int a[MAX] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9};
    int size = MAX, pos, i, j, tmp;

    printf("Array: ");
    for (i = 0; i < size; i++) {
        printf("%d ", a[i]);
    }
    printf("\n");
    scanf("%d", &pos);
    for (j = 0; j <= pos; j++) {
        tmp = a[0];
        for (i = 1; i < size; i++) {
            a[i - 1] = a[i];
        }
        a[size - 1] = tmp;
    }
    printf("Moved: ");
    for (i = 0; i < size; i++) {
        printf("%d ", a[i]);
    }
    printf("\n");


    return 0;
}
